package com.authine.cloudpivot.controller;


import com.authine.cloudpivot.domain.Dto.GovDto;
import com.authine.cloudpivot.domain.GovVO;
import com.authine.cloudpivot.util.Result;
import com.authine.cloudpivot.web.api.controller.base.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/gov")
@Slf4j
public class GovController extends BaseController {

    /**
     * 派单
     */
    @PostMapping("/dispatch")
    public Result dispatch(@RequestBody GovDto govDto){
        GovVO govVO =new GovVO();
        return Result.ok(govVO);
    }
    /**
     * 办结
     */
    @PostMapping("completed")
    public Result Completed(@RequestBody GovDto govDto){
        GovVO govVO =new GovVO();
        return Result.ok(govVO);
    }

    /**
     * 退回
     */
    @PostMapping("return")
    public Result returncase(@RequestBody GovDto govDto){
        GovVO govVO =new GovVO();
        return Result.ok(govVO);
    }
}
